package com.dingtalk.demo.biz.dao;


import com.dingtalk.demo.biz.dao.model.BlogDO;
import com.dingtalk.demo.biz.query.BlogQuery;

import java.util.List;


public interface BlogDAO {

    Long insert(BlogDO blogDO);

    BlogDO selectById(Long blogId);

    boolean delById(Long blogId);

    List<BlogDO> selectByIds(List idsList);

    List<BlogDO> selectForPage(BlogQuery blogQuery);

    int countForPage(BlogQuery blogQuery);

    void updateByIdSelective(BlogDO blogDO);

    void addViewCount(Long blogId);

    List<BlogDO> selectHotForPage(BlogQuery blogQuery);

    List<BlogDO> selectForAdmin(BlogQuery blogQuery);

    int countForAdmin(BlogQuery blogQuery);
}


